<template>
    <div class="register">
        <el-row class="register-nav">
            <div class="register_nav">
                <img src="../static/logo.png" alt="" />
                <div class="login">
                    <span class="possess">已有美团账号？</span>
                    <el-button class="mtBg" size="mini" @click="toLogin">登录</el-button>
                </div>
            </div>
        </el-row>
        <el-row class="register-container width980">
            <login-form-template :isLogin="false"></login-form-template>
        </el-row>
        <div class="register-footer">
            <p><a href="javascript:;">©meituan.com</a> <a href="javascript:;">京ICP证070791号 </a> 京公网安备11010502025545号</p>
        </div>
    </div>
</template>

<script>
import LoginFormTemplate from '../components/login-form-template.vue'
export default {
    components: {
        LoginFormTemplate,
    },
    methods: {
        toLogin() {
            this.$router.push('/login')
        },
    },
}
</script>

<style scoped lang="less">
@media screen and (max-width: 590px) {
    .el-row.register-nav {
        padding: 0 40px;
        div.register_nav {
            width: 100% !important;
            span.possess {
                display: none;
            }
        }
    }
}
.el-row.register-nav {
    border-bottom: 2px solid #ccc;
    div.register_nav {
        display: flex;
        height: 47px;
        padding: 10px 0;
        width: 980px;
        margin: auto;
        justify-content: space-between;
        img {
            height: 47px;
        }
        div.login {
            height: 47px;
            line-height: 47px;
        }
    }
}

.el-row.register-container {
    margin: 60px auto !important;
	padding: 0 20px;
}
div.register-footer {
    border-top: 1px solid #ccc;
    padding-bottom: 30px;
    p {
        text-align: center;
		color: #888;
		white-space: wrap;
		a{
			color: #888 !important;
		}
    }
}
</style>
